<?php
$query=mysql_query("delete from task_plan_detail where id_tp_detail='$_GET[id]'") or die(mysql_error());
if($query){
    $_SESSION['success']='Task plan has deleted successfully';
}else{
    $_SESSION['failed']='Failed to delete Task plan'; 
}        
redirect('index.php?page=task_plan/tp-view');
?>
